package com.sunday.redis.lua;

import com.sunday.common.core.gson.GsonUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RedisEntity implements Serializable {

    private int id;

    private String name;

    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }

}